package algorithms;

import ClassPack.Class;

// finds similiarity between two interfaces or superclasses.
public class InheritanceSuperClasseGrader implements ClassGrader {

	@Override
	public double Grade(Class a, Class b) {
		if  ( (a.getM_subClasses().size() > 0) && 
			  (b.getM_subClasses().size() > 0)) {
			if ( a.getM_subClasses().size() == 
				b.getM_subClasses().size())
				return 10 ;
			else return 2;
		}
		return 0;
	}

}
